﻿using System;

namespace MinMax
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Size of Boolean is " + sizeof(bool) + " bytes");
            
            int a = 2;
            int b = 3;

            int min, max;

            if(a > b)
            {
                min = b;
                max = a;
            }
            else
            {
                min = a;
                max = b;
            }

            // a == b <=> !(a != b)
            // a != b <=> !(a == b)
            if (a != b)
            {
                Console.WriteLine("Min = " + min);
                Console.WriteLine("Max = " + max);
            }
            else
            {
                Console.WriteLine("Min = Max = " + min);
            }
            
            Console.ReadKey();
        }
    }
}
